import 'package:flutter/material.dart';
import 'package:ljy_flutter/provider_mvvm_example/view/joke_view.dart';
import 'package:ljy_flutter/provider_mvvm_example/view_model/joke_view_model.dart';
import 'package:provider/provider.dart';

class ProviderMvvmExample extends StatelessWidget {
  const ProviderMvvmExample({super.key});

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(create: (_) => JokeViewModel(), child: MaterialApp(
      debugShowCheckedModeBanner: false,
      home: const JokeView(),
    ));
  }
}